<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<h2>Project report: ${project.name}</h2>

<p><a href="products.htm">&lt; Back to products</a><br />
<a href="projectStories.htm?id=${projectId}">Show stories report</a></p>

<h3>Description</h3>
${project.description}

<h3>Iterations</h3>

<div style="margin: 2em; min-width: 700px;">
<table border="1">
  <tr>
    <th>Backlog</th>
    <th>Assignees</th>
    <th>Description</th>
  </tr>
  <c:forEach items="${iterations}" var="iter">
    <tr>
      <td>${iter.name}</td>
      <td><c:forEach items="${iter.assignees.user}" var="u">
        ${u.initials}
        </c:forEach></td>
      <td>${iter.description}</td>
    </tr>
  </c:forEach>
</table>
</div>
